<template>
  <div id="app">
    <el-row>
      <el-col :span="4">
        <div class="sidebar-header">
          <img class="header-logo" src="@/assets/logo.png" />
        </div>
      </el-col>
      <el-col :span="20">
        <el-menu
          default-active="/cashier"
          class="el-menu-demo"
          mode="horizontal"
          style="text-align: center"
          router
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b">
          <el-menu-item index="/cashier" default-active="true">收银中心</el-menu-item>
          <el-menu-item index="/manager">我的工作台</el-menu-item>
          <el-menu-item index="/statistic">统计</el-menu-item>
        </el-menu>
      </el-col>
      <!--      <el-col :span="4">-->
      <!--        <el-dropdown>-->
      <!--          <div><span class="user-name">admin</span>-->
      <!--          </div>-->
      <!--        </el-dropdown>-->
      <!--      </el-col>-->
    </el-row>
    <el-row>
      <el-col>
        <router-view />
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'index',
}
</script>

<style scoped>
.sidebar-header {
  background-color: #545c64;
  color: #fff;
}

.header-logo {
  margin: 10px 10px 2px 5px;
  height: 42px;
}
</style>
